Skip to content

Fix/issue 27 types audit align - #49

Merged
Just-Bamford merged 3 commits into
AnonVote:mainfrom
k-deejah:fix/issue-27-types-audit-align
Jul 29, 2026
Merged

Fix/issue 27 types audit align#49
Just-Bamford merged 3 commits into
AnonVote:mainfrom
k-deejah:fix/issue-27-types-audit-align

Conversation

@k-deejah

Copy link
Copy Markdown
Contributor

##closes #27
Changes made to README.md:

Fixed the stale encryptVote row — was still describing base64 colon-delimited output, now correctly describes the EncryptedPayload hex object
Replaced the one-liner types section with a substantive canonical-source statement:
types.ts
is the single source of truth; AnonVote/core should import from @anonvote/crypto instead of defining local copies in core/shared/
Added a types reference table listing all exported types with descriptions
Updated the usage example so encryptVote/decryptVote show the EncryptedPayload object (matches the actual API)
Added DECISIONS.md and client.ts to the repo structure diagram
Added a contributor callout block explicitly directing core away from local type copies
73/73 tests pass, clean tsc build.

k-deejah and others added 3 commits July 29, 2026 03:39
…nonVote#27)

- README: fix stale encryptVote description (base64 -> EncryptedPayload hex object)
- README: replace one-line types description with full canonical-source note
  explaining that AnonVote/core should import from @anonvote/crypto rather
  than defining local copies in core/shared/
- README: add types table listing all exported types with descriptions
- README: update usage example to use EncryptedPayload object for
  encryptVote/decryptVote (matches actual API from issue AnonVote#39)
- README: add DECISIONS.md and client.ts to repo structure diagram
- README: add contributor callout directing core away from local type copies

Note: ElectionResult, BallotEvent, Token, Vote, AnonVoteCryptoError and all
other required types were already added to src/types.ts and fully exported
from src/index.ts in the fix/issue-39 branch. No type additions or removals
needed — only documentation alignment.
@Just-Bamford
Just-Bamford merged commit fe05b70 into AnonVote:main Jul 29, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

types.ts shared types are not used by core — audit and align type definitions

2 participants